package com.strato.datafactory.v1_0_0.filter;

import java.util.List;
import java.util.Map;

import org.apache.commons.lang.builder.HashCodeBuilder;

import com.strato.datafactory.v1_0_0.api.DataFilter;
import com.strato.datafactory.v1_0_0.api.MapDataLoader;



public class MapConditionSqlQueryFilter implements DataFilter{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6361905535400145305L;

	private Map<String,Object> conditions;
	
	public void setConditions(Map<String,Object> conditions) {
		this.conditions = conditions;
	}

	public Map<String,Object> getConditionValues() {
		return conditions;
	}

	public List<Object> postProcess(List<Object> items, MapDataLoader loader) {
		return items;
	}

	public void preProcess(MapDataLoader loader) {
	}

	@Override
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

}
